export function changescroll(ele, toheight) {
    const cha = toheight - ele.scrollTop;
    const each = cha / 20;
    let time = setInterval(() => {
        ele.scrollTo(0, ele.scrollTop + each)
        if (Math.abs(Math.abs(ele.scrollTop) - Math.abs(toheight)) < 15) {
            clearInterval(time)
        }
    }, 20)
}